import request from '@/utils/request'

// 查询企业信息登记列表
export function listFactoryInfo(query) {
  return request({
    url: '/factorymanagement/factoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询企业信息登记详细
export function getFactoryInfo(id) {
  return request({
    url: '/factorymanagement/factoryInfo/' + id,
    method: 'get'
  })
}

// 新增企业信息登记
export function addFactoryInfo(data) {
  return request({
    url: '/factorymanagement/factoryInfo',
    method: 'post',
    data: data
  })
}

// 修改企业信息登记
export function updateFactoryInfo(data) {
  return request({
    url: '/factorymanagement/factoryInfo',
    method: 'put',
    data: data
  })
}

// 删除企业信息登记
export function delFactoryInfo(id) {
  return request({
    url: '/factorymanagement/factoryInfo/' + id,
    method: 'delete'
  })
}
